ISnapshotStorage
StockSharp.Algo.Storages
即时价格存储访问的界面.
实现: ISnapshotStorage
方法
ClearAsync
public ValueTask ClearAsync(TKey key, CancellationToken cancellationToken)
result = iSnapshotStorage.ClearAsync(key, cancellationToken)
Remove snapshot for the specified key.
- key
- Key.
- cancellationToken
- CancellationToken
返回值: ValueTask
GetAllAsync
public IAsyncEnumerable<TMessage> GetAllAsync(DateTime? from, DateTime? to)
result = iSnapshotStorage.GetAllAsync(from, to)
Get all snapshots.
- from
- Start date, from which data needs to be retrieved.
- to
- End date, until which data needs to be retrieved.
返回值: All snapshots.
GetAsync
public ValueTask<TMessage> GetAsync(TKey key, CancellationToken cancellationToken)
result = iSnapshotStorage.GetAsync(key, cancellationToken)
Get snapshot for the specified key.
- key
- Key.
- cancellationToken
- CancellationToken
返回值: Snapshot.